package com.pro.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName NavigationBarData
 * @Author 谭金诚
 * @Date 2021/11/5
 */
@Data
public class JsUser {

  private Integer userId;//自增主键
  private String trueName;//用户真实姓名
  private String sex;//用户性别
  private String account;//用户账号唯一
  private String acatarUrl;//头像url路径
  private String email;//邮箱地址
  private String password;//密码
  private String remark;//备注
  private Integer enabled;//是否启用，1yes，2no
  private String phone;//手机号
  private String idCard;//身份证号码
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date birthDate;//出生日期
  private Integer deptId;//部门id，外键
  private String deptName;//部门
  private String freestyle;//个性签名
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date registerDate;//注册时间
  private String registerIp;//注册时ip地址
  private Integer status;//状态，1使用中，2已注销
  private Integer grade;//等级
  private double wages;//工资

    private Integer authorityId;//权限id
    private String trMame;//权限名称

  public JsUser() {
  }

  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  public String getTrueName() {
    return trueName;
  }

  public void setTrueName(String trueName) {
    this.trueName = trueName;
  }

  public String getSex() {
    return sex;
  }

  public void setSex(String sex) {
    this.sex = sex;
  }

  public String getAccount() {
    return account;
  }

  public void setAccount(String account) {
    this.account = account;
  }

  public String getAcatarUrl() {
    return acatarUrl;
  }

  public void setAcatarUrl(String acatarUrl) {
    this.acatarUrl = acatarUrl;
  }

  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public String getRemark() {
    return remark;
  }

  public void setRemark(String remark) {
    this.remark = remark;
  }

  public Integer getEnabled() {
    return enabled;
  }

  public void setEnabled(Integer enabled) {
    this.enabled = enabled;
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public String getIdCard() {
    return idCard;
  }

  public void setIdCard(String idCard) {
    this.idCard = idCard;
  }

  public Date getBirthDate() {
    return birthDate;
  }

  public void setBirthDate(Date birthDate) {
    this.birthDate = birthDate;
  }

  public Integer getDeptId() {
    return deptId;
  }

  public void setDeptId(Integer deptId) {
    this.deptId = deptId;
  }

  public String getDeptName() {
    return deptName;
  }

  public void setDeptName(String deptName) {
    this.deptName = deptName;
  }

  public String getFreestyle() {
    return freestyle;
  }

  public void setFreestyle(String freestyle) {
    this.freestyle = freestyle;
  }

  public Date getRegisterDate() {
    return registerDate;
  }

  public void setRegisterDate(Date registerDate) {
    this.registerDate = registerDate;
  }

  public String getRegisterIp() {
    return registerIp;
  }

  public void setRegisterIp(String registerIp) {
    this.registerIp = registerIp;
  }

  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public Integer getGrade() {
    return grade;
  }

  public void setGrade(Integer grade) {
    this.grade = grade;
  }

  public double getWages() {
    return wages;
  }

  public void setWages(double wages) {
    this.wages = wages;
  }

  public JsUser(Integer userId, String trueName, String sex, String account, String acatarUrl, String email, String password, String remark, Integer enabled, String phone, String idCard, Date birthDate, Integer deptId, String deptName, String freestyle, Date registerDate, String registerIp, Integer status, Integer grade, double wages) {
    this.userId = userId;
    this.trueName = trueName;
    this.sex = sex;
    this.account = account;
    this.acatarUrl = acatarUrl;
    this.email = email;
    this.password = password;
    this.remark = remark;
    this.enabled = enabled;
    this.phone = phone;
    this.idCard = idCard;
    this.birthDate = birthDate;
    this.deptId = deptId;
    this.deptName = deptName;
    this.freestyle = freestyle;
    this.registerDate = registerDate;
    this.registerIp = registerIp;
    this.status = status;
    this.grade = grade;
    this.wages = wages;
  }
}
